BOOTSEG = 0x7c0
SETUPSET = 0x7e0

.global _start
.code16
.text

_start:
	movw %cs, %ax
	movw %ax, %es
	movw $BOOTSEG, %ax
	movw %ax, %ds
	movw %ax, %fs
	movw %ax, %gs
	movw %ax, %ss
	movw $0x0000, %sp

_load_setup:
	movw $0x240, %ax
	movw $0x7e00, %bx
	movw $2, %cx
	movw $0x80, %dx
	int $0x13
	jnc _ok_load_setup
	movw $0x0000, %ax
	jmp _load_setup

_ok_load_setup:

	jmp .

.org 0x1fe
.byte 0x55, 0xaa
